bafeb94118433f11f1d2a2a853cb431da54b8de0,codeInsight/impl/com/intellij/codeInsight/generation/OverrideImplementUtil.java,OverrideImplementUtil,overrideOrImplementMethod,#PsiClass#PsiMethod#PsiSubstitutor#boolean#boolean#,180
Before Change
for (PsiMethod result : results) {
EjbUtil.tuneMethodForEjb(EjbRolesUtil.getEjbRolesUtil().getEjbRole(aClass), method, result);
setupMethodBody(result, method, aClass);
// probably, it's better to reformat the whole method - it can go from other style sources
CodeStyleManager codeStyleManager = method.getManager().getCodeStyleManager();
After Change
}
for (Iterator<PsiMethod> iterator = results.iterator(); iterator.hasNext();) {
PsiMethod result = iterator.next();
result.getModifierList().setModifierProperty(PsiModifier.ABSTRACT, aClass.isInterface());
result.getModifierList().setModifierProperty(PsiModifier.NATIVE, false);
if (!toCopyJavaDoc){
PsiDocComment comment = result.getDocComment();
if (comment != null){
comment.delete();
}
}
if (insertAtOverride && !method.isConstructor()) {
PsiModifierList modifierList = result.getModifierList();
if (modifierList.findAnnotation("java.lang.Override") == null) {
PsiAnnotation annotation = method.getManager().getElementFactory().createAnnotationFromText("@java.lang.Override", null);
modifierList.addAfter(annotation, null);
}
}
final PsiCodeBlock body = method.getManager().getElementFactory().createCodeBlockFromText("{}", null);
if (result.getBody() != null){
result.getBody().replace(body);
}
else{
result.add(body);
}
setupMethodBody(result, method, aClass);
// probably, it's better to reformat the whole method - it can go from other style sources
CodeStyleManager codeStyleManager = method.getManager().getCodeStyleManager();